<!--<?php
print <<<EOT
-->
EOT;
require_once Pcv($logic_file_path."groups.php");
require modeEot('header');
print <<<EOT
<script type="text/javascript">
function swap_tab(n,m){
try{
	for(var i=1;i<=m;i++){
		var curC=document.getElementById("tab_"+i);
		var curB=document.getElementById("tab_t"+i);
		if(n==i){
			curC.style.display="block";
			curB.className="current"
		}else{
			curC.style.display="none";
			curB.className=""
		}
	}}catch(e){}
}
function swap_tab2(n,m){
try{
	for(var i=1;i<=m;i++){
		var curC=document.getElementById("tab2_"+i);
		var curB=document.getElementById("tab2_t"+i);
		if(n==i){
			curC.style.display="block";
			curB.className="current"
		}else{
			curC.style.display="none";
			curB.className=""
		}
	}}catch(e){}
}
</script>
<style>
	.mygroups{font-family: ''cb'ce'cc'e5'; color: rgb(0, 0, 255); font-size: 13px;}
</style>
	<div id="borderTop"></div>
	<div id="mainContent">
		<div class="g_navA">
			<a href="apps.php?q=groups&" class="s4 fr">查看我的群组>></a>
			<ul id="nav"><pw id="群组标题" /></ul>
<!--
EOT;
if($o_newcolony){print<<<EOT
-->
			<a href="apps.php?q=groups&a=create" class="chuangjian">创建群组</a>
<!--
EOT;
}print<<<EOT
-->
		</div>
		<div class="content">
			<div id="tab_1" class="groups cc"><pw id="群组列表_1" /></div>
			<div id="tab_2" class="groups cc" style="display:none"><pw id="群组列表_2" /></div>
			<div id="tab_3" class="groups cc" style="display:none"><pw id="群组列表_3" /></div>
			<div id="tab_4" class="groups cc" style="display:none">
			<ul>
<!--
EOT;
foreach($randColonys as $key => $value) {print<<<EOT
-->
			<li>
				<a href="apps.php?q=group&cyid={$value[id]}" target="_blank"><img class="fl" src="{$value[cnimg]}" width="64" height="64" /></a>
				<h4><a href="apps.php?q=group&cyid={$value[id]}"  target="_blank">{$value[cname]}</a></h4>
				<p>{$value[descrip]}</p>
			</li>
		
<!--
EOT;
}print<<<EOT
-->
			</ul>
			</div>
			<div class="group-types">
				<div class="hd">
					<h3><a href="apps.php?q=groups&a=all">群组分类</a></h3>
					<span class="more"><a href="apps.php?q=groups&a=all">共有<em>{$colonyNums}</em>个群组</a></span>
				</div>
				<div class="bd">
					<div class="bdWrap cc">
					<dl>
						<dt><pw id="业主小区hd" /></dt>
						<dd><pw id="业主小区bd" /></dd>
					</dl>
					<dl>
						<dt><pw id="爱车一族hd" /></dt>
						<dd><pw id="爱车一族bd" /></dd>
					</dl>
					<dl>
						<dt><pw id="运动和爱好hd" /></dt>
						<dd><pw id="运动和爱好bd" /></dd>
					</dl>
					<dl>
						<dt><pw id="拉风汽车hd" /></dt>
						<dd><pw id="拉风汽车bd" /></dd>
					</dl>
					</div>
				</div>
			</div>
			<div class="g_navA">
			<pw id="最热最新" />
			</div>
			<div class="topics">
				<div id="tab2_1"><pw id="群组最热" /></div>
				<div id="tab2_2" style="display:none;"><pw id="群组最新" /></div>
			</div>
		</div>
		<div class="sidebar">
			<div class="side-box">
				<pw id="群组排行" />
				<pw id="top20@群组聚合" />
			</div>
			<div class="side-box">
				<h3>他(她)刚刚加入</h3>
				<ul class="users cc">
<!--
EOT;
foreach ($newmembers as $key => $value){print<<<EOT
-->
					<li>
						<a href="u.php?uid={$value[uid]}" target="_blank"><img class="fl" src="$value[faceurl]" width="48" height="48" /></a>
						<h4><a href="u.php?uid={$value[uid]}" target="_blank">{$value[username]}</a></h4>
						<p>加入了 <span class="b"><a href="apps.php?q=group&cyid={$value[cyid]}" target="_blank">{$value[cname]}</a></span></p>
					</li>
<!--
EOT;
}print<<<EOT
-->
				</ul>
			</div>
		</div>
		
		<div class="c"></div>
	</div>
	
EOT;
require modeEot('footer');
print <<< EOT

<!--
EOT;
?>-->
